//h5info 信息
// let $ = require('jquery');
//获取地址栏参数
let getQueryString = function(name){
	var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	var r = window.location.search.substr(1).match(reg);
	if(r!=null)return  unescape(r[2]); return '';
};

let h5Info = function(href, type, htmdEvt, eTarget){
	var h5_info,
	    $e = $(eTarget)
	// 点击事件自定义埋点info
	if(type == "click"){
		// 活动页点击具体活动
		if ( href.includes('/memberActivitiesList') ){
			if(htmdEvt == 'memberActivitiesList_01') {
				h5_info = { actid: $e.data('actid'), city: $e.data('city') };
			}
		}
	} else {// 非点击情况（页面加载和退出）自定义埋点info

	}
	h5_info = (h5_info ? h5_info : '');
	return h5_info;
}

module.exports = h5Info;